const mysql = require("mysql")
// 数据库名称
const dataBase = "homestay"
// 创建连接
const connection = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    password: '123456',
    database: dataBase,
    port: '3306'
});
// 建立连接
connection.connect(err => {
    if (err) throw err;
    console.log('mysql periodical connected ')
});



module.exports = connection;

